home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
04-03.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-05
|
553b
|
42 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
OldMode = FGgetmode
NewMode = FGautomode
IF NewMode = 0 THEN
PRINT "This program requires graphics."
STOP
END IF
FGsetmode NewMode
FGinitw
FGsetworld 0.0, 40.0, 0.0, 30.0
CALL Redraw
FGwaitkey
FGgetworld Xmin#, Xmax#, Ymin#, Ymax#
FGsetworld 0.0, Xmax#*0.5, 0.0, Ymax#*0.5
CALL Redraw
FGwaitkey
FGsetmode OldMode
FGreset
END
SUB Redraw
FGerase
FGsetcolor 1
FGmovew 0.0, 0.0
FGdraww 0.0, 10.0
FGdraww 10.0, 10.0
FGdraww 10.0, 0.0
FGdraww 0.0, 0.0
END SUB